<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>无标题文档</title>
<script type="text/javascript">

var str = "my Dog"; 
var reg =/dog/i;
var result=reg.test(str);
alert(result);

</script>


</head>

<body>
</body>
</html>
